{% extends "base.html" %}

{% block conteudo %}

    {% if form.errors %}
    <p class="aviso">Nome de usuário e/ou senha incorreto(s)</p>
    {% endif %}
    
    <br />
    <form class="login" method="post" action="{% url django.contrib.auth.views.login %}">
        {% csrf_token %}
        <table>
            <tr>
                <td>{{ form.username.label_tag }}</td>
                <td>{{ form.username }}</td>
            </tr>
            <tr>
                <td>{{ form.password.label_tag }}</td>
                <td>{{ form.password }}</td>
            </tr>
        </table>
        
        <input type="submit" value="login" />
        <input type="hidden" name="next" value="{{ next }}" />
    </form>
    <p><a href="/public/cadastrar">Cadastrar</a> - <a href="javascript:alert('Não implementado ainda');">Esqueci a senha</a></p>

{% endblock %}

